#include <QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int b;
    printf("vvedite chislo ");
    scanf("%d", &b);
    printf("edinici: %d", b%10);
    printf("\ndesyatki: %d", (b/10)%10);
    return 0;
}
